import request from '@/utils/request'

// 工单管理的列表
export const goodsManageApi = (params) => {
  return request.get('/task-service/task/search', { params })
}
// 工单管理的详情
export const goodsDetailApi = (id) => {
  return request.get(`/task-service/task/taskInfo/${id}`)
}
// 工单补货详情 /task-service/task/details
export const goodsTaskDetailsApi = (id) => {
  return request.get(`/task-service/task/details/${id}`)
}
// 工单中人员列表 /user-service/user/operatorList/:innerCode
export const operatorListManApi = (id) => {
  return request.get(`/user-service/user/operatorList/${id}`)
}

// 取消工单 /task-service/task/cancel
export const operaCancelApi = (data) => {
  return request.post(`/task-service/task/cancel/${data.taskId}`, data)
}
// 新增工单 /vm-service/channel/channelList/
export const channelListApi = (id) => {
  return request.get(`/vm-service/channel/channelList/${id}`)
}
